package com.eigland.eigaland_lib.base

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import me.yokeyword.fragmentation.ExtraTransaction
import me.yokeyword.fragmentation.ISupportActivity
import me.yokeyword.fragmentation.SupportActivity
import me.yokeyword.fragmentation.SupportActivityDelegate
import me.yokeyword.fragmentation.anim.FragmentAnimator

abstract class BaseAct<VM,binding> : SupportActivity(){



    var  vm : VM? = null
    var bd : binding? = null

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        initVM()
        initView()

    }

    /**
     * init view
     */
    abstract fun initView()

    /**
     * init view model
     */
    abstract fun initVM()
}